
<div id="actionbar">
    <a href="javascript:;" url="{:url('card/winCoupon',['card_id' => $card_id])}" class="button button-blue coupon"> <i class="iconfont icon-add_icon"></i>关联优惠券</a>
</div>
<table class="table table-border">
    <thead>
        <tr>
            <th class="w60"></th>
            <th>优惠券</th>
            <th class="w100 fn-tar">剩余/初始</th>
            <th class="w100 fn-tar">￥额度</th>
            <th class="w80 fn-tar">￥满用</th>
            <th class="w100 fn-tar">抵扣/折扣</th>
            <th class="w200 fn-tac">有效期</th>
            <th class="w100 fn-tac">操作</th>
        </tr>
    </thead>
    <tbody>
        {foreach $lists as $vo}
        <tr>
            <td class="fn-tac"><img src="{$vo.img ? $vo.img : '__PUBLIC__/admin/review.png'}?x-oss-process=style/80" class="w50"></td>
            <td>
                <i class="iconfont icon-discount"></i><span class="selectID fn-cp fn-fb" url="{:url('coupon/review',['id'=>$vo.id])}">{$vo.name}</span><br />
                <span class="selectID fn-cp" url="{:url('store/review',['id'=>$vo.store.id])}"><i class="iconfont icon-store_icon"></i>{$vo.store.name}</span><br />
                <span class="gray"><i class="iconfont icon-wodedingdan2"></i>{$vo.tips}</span>
            </td>
            <td class="fn-tar">{$vo.num}</td>
            <td class="fn-tar">{$vo.size}元</td>
            <td class="fn-tar">{$vo.howmuch}元</td>
            <td class="fn-tar">{if $vo.types}<span class="badge bg-blue">{$vo.discount}折</span>{else}<span class="badge bg-green">{$vo.price}元</span>{/if}</td>
            <td class="fn-tac">{$vo.starttime|date="Y-m-d"} 至 {$vo.endtime|date="Y-m-d"}</td>
            <td class="fn-tac">
                <a class="button isDel" url="{:url('card/delCoupon',['card_id' => $card_id,'coupon_id' => $vo.id])}" href="javascript:;"><i class="iconfont icon-lajixiang"></i>删除</a>
            </td>
        </tr>
        {/foreach}
    </tbody>
</table>
{$lists|raw}
<script type="text/javascript">
Do('base', 'layer', function () {
    $('.isDel').isDel();
    $(".coupon").win({reload:1});
    $(".selectID").win();
})
</script>